#! /bin/bash

mkdir MyTests
find -name MyTests -prune -or -name "*.nxe" -exec cp {} MyTests \;

stty 1:0:80001cb2:0:3:1c:7f:15:4:5:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 </dev/ttyS1
/bin/cp /dev/ttyS1 screen &
cpJob=$!

( cd MyTests; for f in *nxe; do m68k-elf-gdb ${f} </dev/null; done )

kill -9 $cpJob
